<?php
if($_POST['submit']){
	$seo=$_POST['seo'];
sql_update('websetting',$seo,'Id',1);
echo alert('保存完全', '?act=shezhi');
}
$seo=sel_arr_sql('websetting','urlkey',"Id=1");
$seo=$seo[0];

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>SEO后台管理</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/system.css" rel="stylesheet" type="text/css" />
<link href="css/table_form.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="js/formvalidator.js" charset="UTF-8"></script>
</head>

<body>
<style type="text/css">
html{_overflow-y:scroll}
</style>
<script type="text/javascript">
$(document).ready(function() {
	$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg){}});
	$("#site_title").formValidator({onshow:"请输入网站标题",onfocus:"用于首页标题或其他页面标题",oncorrect:"标题设置正确"}).inputValidator({});
});
function insertText(id, text){
	var mystr = $('#'+id).val();
	$('#'+id).focus();
	$('#'+id).val(mystr + text);
}
</script>
<style>
.input-text{font-size:12px; font-family:'宋体';}.btn-l{color:#38E;border-bottom:2px #38E solid;text-decoration:none;}.red{color:#D30;border-color:#D30}
</style>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a ><em>url规则</em></a><span>|</span>请阅读提示进行设置
    <div id="callback" class="hidden pa" style="height:30px;top:13px;left:235px"></div>
  </div>
</div>
<div class="pad_10">
  <div class="explain-col"> 温馨提示：让url变的其他网站不一样,越短越好但不能留空！太长了加密的url也会随之变长.<br />
  </div>
  <div class="bk10"></div>
  <div class="col-tab">
    <div id="div_setting_1" class="contentList pad_10">
      <form name="myform" action="?act=shezhi&a=save" method="post" id="myform">
        <table width="100%"  class="table_form">
          <tr>
            <th width="10%">url加密字符串</th>
            <td width="90%"><input type="text" name="seo[urlkey]" id="title_list" size="25" class="input-text" style="width:95%" value="<?=$seo["urlkey"]?>" /></td>
          </tr>
          <tr>
          </tr>
          <tr>
            <th></th>
            <td><span>为空是不加密，此加密暂时只对list和view页面有效</span></td>
          </tr>
          <tr>
            <th></th>
            <td><input type="submit" name="submit" value="提交" class="button"></td>
          </tr>
        </table>
      </form>
   
      <div class="bk15"></div>
    </div>
  </div>
</div>
</body>
</html>